﻿using System;

namespace Alex.Library.Specifications
{
    /// <summary>
    /// Composited specification's Interface
    /// </summary>
    /// <typeparam name="T">any type</typeparam>
    public interface ICompositeSpecification<T> : ISpecification<T>
    {
        /// <summary>
        /// the first specification
        /// </summary>
        ISpecification<T> Front { get; }

        /// <summary>
        /// the second specification
        /// </summary>
        ISpecification<T> Behind { get; }
    }
}
